package com.southminority.ethnic.controller.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class LogonReqVo {
    @Schema(description = "邮箱")
    @NotNull(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;
    @Schema(description = "用户名")
    @NotNull(message = "用户名不能为空")
    private String username;
    @Schema(description = "密码")
    @Size(min = 6, message = "密码长度不能少于6位")
    private String password;
    @Schema(description = "重复密码")
    @Size(min = 6, message = "密码长度不能少于6位")
    private String passwordAgein;
    @Schema(description = "验证码")
    private String code;
}
